﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp2
{
    public partial class Form1: Form
    {
        public Form1()
        {
            InitializeComponent();
            this.textBox.BackColor = Color.DarkGray;
            this.btnTextClick.Click += (object sender, EventArgs e) =>
            {
                this.textBox.Text = "Hoho!";
            };
        }

        private void btnTextIn_Click(object sender, EventArgs e)
        {
            this.textBox.Text = "Hello World!";
        }

        private void btnTextOut_Click(object sender, EventArgs e)
        {
            this.textBox.ForeColor = Color.DarkBlue;
        }
    }
}
